﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DA;
namespace BLL
{
    public class Order_Detail_BLL
    {
        public static Order_Detail_DAL cls = new Order_Detail_DAL();
        #region[Get-Data]
        public DataTable GetOrderDetail(int id)
        {
            return cls.GetOrderDetail(id);
        }
        public DataTable GetOrderDetailTemp()
        {
            return cls.GetOrderDetailTemp();
        }
        public DataTable GetOrderDetailOrder(int id)
        {
            return cls.GetOrderDetailOrder(id);
        }
        public DataTable GetOrderDetailTempTotal()
        {
            return cls.GetOrderDetailTempTotal();
        }
        #endregion

        #region[Update]
        public static bool InsertOrderDetail(ET.Order_Detail_ET obj)
        {
            return cls.InsertOrderDetail(obj);
        }
        public static bool InsertOrderDetailTemp(ET.OrderDetailTemp_ET obj)
        {
            return cls.InsertOrderDetailTemp(obj);
        }
        public static bool UpdateOrderDetailTemp(ET.OrderDetailTemp_ET obj)
        {
            return cls.UpdateOrderDetailTemp(obj);
        }
        public static bool UpdateOrderDetailStt(ET.Order_Detail_ET obj)
        {
            return cls.UpdateOrderDetailStt(obj);
        }
        public static bool DeleteOrderDetailTemp(int id)
        {
            return cls.DeleteOrderDetailTemp(id);
        }
        public static bool DeleteOrderDetailTempAll()
        {
            return cls.DeleteOrderDetailTempAll();
        }
        public static bool UpdateOrderDetail(ET.Order_Detail_ET obj)
        {
            return cls.UpdateOrderDetail(obj);
        }
        #endregion
    }
}
